#ifndef SETTING_H
#define SETTING_H

#include <QWidget>

namespace Ui {
class Setting;
}

class Setting : public QWidget
{
    Q_OBJECT

public:
    static Setting* get_instance();
    ~Setting();
    void animation_show();
    void animation_close();
    static const int this_height;
    static const int this_width;

private:
    explicit Setting(QWidget *parent = nullptr);
    void style_set();
    void other_set();
    void about_set();
    void set_kai_ji_start(bool);  // 设置开机自启动
    void paintEvent(QPaintEvent *);
    int press_x;
    int press_y;
    void mousePressEvent(QMouseEvent *);
    void mouseMoveEvent(QMouseEvent *);

    Ui::Setting *ui;

signals:
    void setting_saved();
};

#endif // SETTING_H
